<?xml version="1.0"?>

<st-source>
<time-stamp>From VisualWorks® NonCommercial, 7.5 of April 16, 2007 on October 19, 2007 at 12:17:38 pm</time-stamp>


<class>
<name>Player</name>
<environment>SpaceTrader</environment>
<super>SpaceTrader.Character</super>
<private>false</private>
<indexed-type>none</indexed-type>
<inst-vars>location money encounters </inst-vars>
<class-inst-vars></class-inst-vars>
<imports></imports>
<category>SpaceTrader</category>
<attributes>
<package>SpaceTrader</package>
</attributes>
</class>

<comment>
<class-id>SpaceTrader.Player</class-id>
<body>Player contains much of the instance data about the human player (the user). It is also responsible for some trading and combat actions.

Instance Variables:
	encounters	&lt;Object&gt;	A collection of encounters; each one describes and manages an interaction with an NPC.
	location	&lt;Object&gt;	The planet at which the player (and his/her ship) is located.
	money	&lt;Object&gt;	The player's available funds.

</body>
</comment>

<methods>
<class-id>SpaceTrader.Player</class-id> <category>initialize-release</category>

<body package="SpaceTrader" selector="initialize">initialize
	"Initialize a newly created instance. This method must answer the receiver."

	super initialize.
	" *** Edit the following to properly initialize instance variables ***"
	location := nil.
	money := nil.
	encounters := nil.
	" *** And replace this comment with additional initialization code *** "
	^self</body>
</methods>

<methods>
<class-id>SpaceTrader.Player</class-id> <category>accessing</category>

<body package="SpaceTrader" selector="encounters">encounters
	^encounters</body>

<body package="SpaceTrader" selector="encounters:">encounters: anObject
	encounters := anObject</body>

<body package="SpaceTrader" selector="location">location
	^location</body>

<body package="SpaceTrader" selector="location:">location: anObject
	location := anObject</body>

<body package="SpaceTrader" selector="money">money
	^money</body>

<body package="SpaceTrader" selector="money:">money: anObject
	money := anObject</body>
</methods>

</st-source>
